<?php

/**
 * 路由配置。格式：URI => ['controller::action', ['method']]
 * 
 * 控制器与action使用::分割，方法为数组或字符串，不指定默认为GET
 */

return [
    '/' => ['app\controller\Index::index', ['get', 'post']],
    'create' => ['app\controller\Index::create', ['post']],
    'vote' => ['app\controller\Index::vote', ['post']],
    'more' => ['app\controller\Index::more', ['post', 'get']],
];